package net.xo68.destiny.core.timingwheel;

import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;

/**
 * 时光轮任务执行器
 * @author wuxie
 * @version 2020-10-19
 */
public interface TimingWheelTaskExecutor {

    Future<?> submit(Runnable task);

    <T> Future<T> submit(Callable<T> task);

    void shutdown();
    List<Runnable> shutdownNow();
}
